<?php

namespace app\backend\controller;

use app\component\BaseController;
use support\Redis;
use support\Request;
use support\XunshanContainer;

class IndexController implements BaseController
{
    public function actionIndex(Request $request)
    {
        return view('index');
    }

    public function actionLock(Request $request)
    {
        $auid = XunshanContainer::user()->getIdentity()->getId();
        Redis::set("XUNSHAN_USER_LOCK:". $auid, time());
        return view('lock');
    }
}
